import React, { FC } from "react"
import { Link } from "react-router-dom"
import { LOGIN_PATHNAME } from "../router"
import { getUserInfoService } from "../services/user"
import { useRequest } from "ahooks"

const UserInfo: FC = () => {
  const { data } = useRequest(getUserInfoService)
  const { username, nickname } = data || {}

  const UserInfo = (
    <>
      <span></span>
    </>
  )

  return (
    <>
      <Link to={LOGIN_PATHNAME}>登录</Link>
    </>
  )
}
export default UserInfo
